change the dir struct