modify document path