add an algorithm, Oct 8th