repaired simulation