traverse class