session function added