add discarding after migration.