remove nnnecessary permissions