cosmetic
draft of the algorithm pseudo code