removing un-used permissions