use ints instead of floats