updated the code to include the 10 min window for cql