fixed time sample issue and initialization of accumulator