remove unnecessary traverse method