added session code