change gradient to accumulate mode