table setting function

Elegant setting.