adding debug printing back