apply Xcode suggestion