add variable to store connection