updating ids