add replace for 2d Val Max cut