multiplies cumsum and muls had some overflow pb in cover. Just changing ...

...loops to avoid undue cases