change int type to NSInteger for 64bit and 32bit build WARNING