modernization: use nullptr instead of NULL