selected version 1 for the algorithm