repair the output