changes 0 to NULL for compatibility with google style guide