fix debug print statments