time ranges cleanup