more updates for transition from list to data frame