dendogram refactored with new architecture version