timeline and compress code