fixed pretty printing