get rid of arithmetic warnings