improve pretty printing