uppdate to revertVisited function