remove some unneeded allocation