upd functions