fixed formatting of lines to match C++ style