cleaning up clustering