some modifications to Newmark material to support debugging