dynamic allocate space for local-accumulation