fixed construction of data frame containing results.