change files to proper modes