walk imi algorithm of t