added global box boundary condition for dz