in parse_next_box also check for same line