adjusted debug print statements