merge unique method