xcode6 compatibility