fixed and tested cumul
tested values print