undo incorrect commit which removed the avalanche logic