add an algorithm Dec 28th