add EOF at the end of file