upd code