code review for using delegation stateids