use list.files instead