Correctly working with files split