change output folder by removing folders