finished draft of t intervals