add an algorithm, Oct 21st