add merge macro