rework to make the merge rule independence