clustering and dimension reduction