added data frame conversion