adding more timing code