adding VariableDocument