replaced 0 with nullptr