removing unecessary permissions