add an algorithm Oct 27th