started to work on visited hashset