code and stencil