de-messed, got rid of the num clusters constant, things seem to work