serial algorithm changes