maps aarrays into objects now