changing session to session()