remove unused permissions