dbscan code adjust