spark re-generate