brief hack on minmax