remove useless print in generate()