added code to collapse the 4 time windows into 1