use temp file