deleted legacy Objective-C code