Apparently adding rounding to the output made it wrong. removing corr rounding