add location to parsed_document