minor changes in generate
demo order