adding the stencil code