added a section of a state examination & fixed a session overflow issue