magnet design