append value to structure
append value to document