adding traverse method #5 + some minor tweaks