fix bug when reading excel files; needs to output dataframe