change: new hp:eof method instead of res.eof