magnet optimization and sixes by Julia, THT