change order of passed in variables

update merger logic