update function minus