change tolerance algorithm for combining points