added some debug code in Newmark kernel