update max and sequencer