cleaned up debug printing