moved updateID into a common function