merging states