refactored coil