correct template instantiation