created annotateLink and modified annotate to take in map instead of function