fix pretty print