working on sorting files based on ologiomeric state