getting rid of unnecessary privileges