added pretty print