reverting last commit and addilng debug change