debugging clustering