loop for fetching health data