removed temp variable