printing fixes