saves memory allocation.