removed most of debug statement