update C++ template
stuff