removing warnings about conversions from NSInteger to int