added indices for date retrieval