more work on expectation maximization