return proper sequence of files