work for merging