need to convert following to a dataframe