simplify update operation