remove unneeded permissions