basic outline of a merge