working on session code