add merge method