remove function names in maximum/minimum error messages