if points are too close, merge together