added retriever functionality