int -> NSInteger to support 64-bit processor, #82