cut out lines which are no longer used