added generate option