changing ids so that they don't overflow