adjusting template class