fillVariableColumns() refactored