removed commented out code in getLinked