refactoring table element