updated to use session for name