fixed bug we were having by popping point after next closest one is found