fix debug print statements