addressed seg fault in line_count_3