removed Dead code