fix torque query metohd