template with pshape