my $b_started = 0;