collapse data stored in struct array entries