stored all variables into temp file