adding permissions to the files