consolodated session functions into assignments