use 32 bit ints instead of longs