upd in open func