refactored capitalization of template