small changes on the boundary conditions