move pretty print call