updated design for the repair_analysis