tweaked update operation to enable updates without set or unset