remove endfor from copypasta