add model session function