started converting to session variables