started switching NULL to nullptr and switching raw pointers to smart pointers