update arithmetic operation