changed threshold from radians to degrees.