working solution for stepping motor rotation