finished polling functionality