data fetching and analysis