slight refactoring to 018_067, using Max method