add generate parentheses

Signed-off-by: WanBin <ouyangwanbin@gmail.com>