lstm prototype