make links reference each other