fixed int vs NSinteger compiler warnings