adds a name to links