the change for the boundary condition; the box has three different lengths at each side