merged setData into fromArray