handle files according to their sizes instead of their count