to be all in a data frame rather than separate arrays
to be all in a data frame rather than separate arrays