modified min distance to merge
modified build points to only build merged points