generator: complete function body