rewrote links