fix the link method