functions need to be more generic, when only a dataframe is given
functions need to be more generic, when only a dataframe is given