creating the output directory