took off junk from end of file