rewrote the link color map and output