pushing that value to the data array and logging