fixed to jsonify correctly