DBSCAN logic altered