"rich" doesn't fit in algorithm right.