add merge trees