made some changes on session