now taking clusters as argument