add detetion for objective-c