map reduce document structure to be defined