minor algorithm adjustments before our meeting