skip already visited transactions