made changes to conform with changes to the swift language in latest Xcode