add magnet control