switch from filteredActivities object to array