integrating scalar arithmetic properly?