adding pretty printing