fixing a print bug