convert to modern objective-c syntax