magnet tools optimized - JULIA