remove tabulate
add some debug code