to add code for the 2nd order LHS, need to do BCs