updating merge wrapper function