changed the tempfile variable name