put last type in session