work in progress -- more work on expectation maximization