add merge procedue