changed from repeats to indexing for the day so that incomplete days display correctly