removed unused variables for motor balancing