making progress on template idea
almost getting there