added jsonify method