added print in each sum iteration; works!