remove some unneeded local var allocations