to be a good NS citizen, i changed all NSUIntegers to NSInteger