split the file up in 3 categories