finite mixture model working