add hypot and distance in clustering