split files by type