remove tmp file
search time little bit more precisely