adds debug print statements