writing on DBSCAN