got visited list working