fixed pretty printer for func init