fixeed brown clustering script