better syntax for c++