def update