switching around references in xcode