add the generated corpus function; works