DBscan code needs result validation