Changed int to NSUinteger