variables named temp and tmp? that's crazy confusing. I won't make a federal case out of it, but man...