cocoa has the weirdest errors