add idangerous function and translate some comments to English