converting to a template
wip
completed