change initialization from nullptr to 0