added clustering based on shared words