changes to clustering program