When two magnets repel they