reduce temp variable