added one function in session