This will slightly change the behavior.
the capacity of "lines_ga" will be zeroed in new implementation.