working get_next_line