delete tempfile
delete fig