readying for c++ conversion