update both files