updated the session class