take a correct doc id