study trial generation