simplify the file