custom threshold and assume invalid points are far away instead of super close