set table depending of element type