refactoring GMM set management