main repair