introduced var api for template