fixed a:visited code