working on GMM model