document is already in d