combine some lines, add comments to addDash method