remove some branches of opt