append value to document