changing 3d amr to have bc bug fix