modify the struct of dir