useful linkedBy function