not finished fixing unwrap_head_lines()