fixed example generation process