refactored toggle increment direction