function traverse succeed