changed the mode for files