update mat seq and add testbench