local timing code, new formatting