cleaning isomap/cluster functions