remove dead lines