function and variable uses the retriever