renamed replace to merge
renamed replace to merge