modify boundary conditions