updated the file modes