updated Xcode and function name