added SoE algo #2