clean up extra lines in files