modify foreach statement to add features
delete unused code in irbuilder for forstatement