changed for xcode 3