fixed pretty printer