convert to modern objc syntax