recursive record pretty print