added running sum