a little fix

declaration of return value int to NSInteger