handle ints correctly