request merge function