fix tables format