added print pretty function