templating for sop