before merging