fixes garbage in file