preparing for the session