get function eof bug partially fixed