add return char at eof for testling