update data to include IDs