update for Swift 1.0