adding more debug printing