make everything in session code