get rid of 3 Xcode warnings