update math/max math/min: rewrite with internal/function_execute_status