add generate close book