changed method of combining results from methods to be much more efficient