minor changes, changed combine_results function