fix that last commit, this should be max, not min