add IDs for linking