refactoring and bugfix in CombineUtils