add func keyword argument to merge