change all instances of =0 to =nullptr