mark_visited works now