improved print functionality.