changed debug printing