rewrote delegate retrieval