remove unnecessary template instantiation