int replaced by NSInteger