changed the output directory structure