updates to accum function to compute bounds