updated to pull data from API