Tweaks of maximum and minimum related functions