dsd retrieval code complete