ah, that usage of `min` is excellent - thanks