added callback to .link() method