rebuild output