implemented removePrivilege