add some elements and mat