fillVariableColumns() works for variableCount > 2. needs refactoring though