added end to traversed