add table->fgcolors,bgcolors
refactoring