added temp array to store points in a run