more closely matches the actually algorithm requested