befor merging