removing un-needed permissions