getting a template instance for creation