fixed example generation script