adjustments to altered algorithm