finish the bvp problem