updated forget register n unregister in eof, my bad sorry :D