added some debug statements
removed 2 debug statements