added interval retrieval