cleaned up debug printing.