remove uneeded permissions