added IDs to table tuples