result to file; before apriori input change