The four elements for a perfect stencil