handle void tags in loop body