mapping an array to one of its fields