adding torque functionality