replaced array of strings with objects