mapToDocument  change to string type