remove unnecessary permissions