testing for latency
streamlined day markers
commented code