before splitting files