do optimize after merge