moved minmax to sep repo