output is corrupt. reverting something