replace nullptr which is not c++98 compatible