find last files function