lecture:timing function and shadow