adjustment directory and modify diff files