removes endfor using [noend]