Vestigial organ
Occasionally, selection turns vestigial organs to a new function. Thus the mammalian ear ossicles were once bones in the jaw of early proto-mammals, the Therapsida. The halteres of flies is a perfect example. The word exaptation was coined for this phenomenon.