timing code inserted