refine dbscan method