remove foreach etc