add loop tree traverse