closest points almost working