added torque calculation