populate document with values
add arrays to document