fixed up indentation/extra lines in code that inserts a table