magnet effect working