fixing all xcode warnings