updated sample for connectivity