changes from id to array of data