adding the link correlation stuff