update mode of files