inter chain algorithm updated