same algorithm but wax-on-wax-off