[optimization] removed extra temp var