macro‘s min max to std's min max