fix if pretty print