add expectation to sequence model