second draft of boundary conditions