remove permissions that were not needed