fixing output directory