what happend when the magnets attract to the iron