cleaning up Xcode errors