changed to calculate final redshift distribution