fixed typo and lowered distance threshold