updated reduce method for solutions