bug fix: some of the table population methods had curly braces closing for loops in the wrong spots