conditional folder and removed new file