coil optimization