adding table pattern