updated to work with Xcode 5