moving clustering to a new file