cpp functions should be static