changing behavior when deleting a row.