separates into files