inverting commutation method