However, vestigial structures may have their original function replaced with another. For example, the halteres in flies help balance the insect while in flight, and the wings of ostriches are used in mating rituals and aggressive displays. The ear ossicles in mammals are former bones of the lower jaw.