use stack instead of local memory allocation.