updated update procedure.