modified session 2 application