adding debug trace