use primary key based upon pointer to doc