altered code to reference new dataframes.