adjust finit difference form if near bound