removes blank line at file end