magnet output added