added connect variable