changed objc to swift