modified revoke to change id