trim some lines