cleaned up c++ code