updated to adjusted link.py