rename active into visited