setActive and stencil masks