updating code to use session variables