begun implementing boundary conditions