time-based fitting added