#define-optimizations for color coding and time intervals