process cluster trees