add connected condition