fixed Xcode warnings