remove duplicate definition of applyCumulative