modify direcotry structure