fix types of stencil operations
first go on stencil