added angle in clustering