working on StencilFunction.h