enhance update code. update values appropriately when Increment/Delete are used