updating IDs