Removing harmful rows of data