dinamic work with tables