improved expectation maximization interface