removed use CMS in template class