added misc funcs in arith