adding debug printing.