got it working for ints