basic xy clustering done