added torque handling