changed to fit c++98
little edits