min/max tx done, needs testing