add version number to two c++ funs