fixed deleted changes and formatted table.cpp