faster comparator
rm tmp file