adjustet parameter for max angle thresh and distance between points