added generate

added generate