final edits and templating