improvements to the algorithm after meeting