small changes to reduce reallocations