replaced nullptr with NULL, since it has to work with old compilers