added primitive merge function
added primitive merge function
added merge function