removed garbage at the end of files