7 July 2014 some algo stuff