added for statement to traversetester