outputs dataframe instead of CSV