return only IDs in links