removed some debug statements
added debug statement