added nullify action before deleting