clean up generation of example