change torch detection