add an algorithm, Oct 5th