improved generation speed