Title: An infrared study of the Magellanic clouds