removed variable visited entirely