changing to take array from API result