collapse some lines