simplified boundary condition setup