add remaining links to ids