found and replaced nullptr with NULL