first round of compile error fixing in xcode