and removing damaged material