add generate statement