less allocation of memory