also cast data as array to make sure to key the object props