remove $tmp