Updating boundary conditions...not sure if correct or not