init pointer to null on file open