complete generation task