polling functionality added