fixed data frame creation