removed dead code in fillVariableColumns(), still need to refactor though