trial generation