fixing clustering