update uid first