Trying to solve merging problem