modified demodir