add an algorithm, Oct 9th