change data to array of objects