created function to create single data table for either data set