Personal record some of the algorithm