'a few tweaks to finding the max'