use objectAtPosition: to replace objectAtIndex: in NSArray