ordered execution of replace
order