initial clustering script