eof changed to -1