stencil func simplifications