refactor helper fn for readibility
test all table style