renaming: trailArray[i].id  (id => prediction)