rename and pretty print