adjust the dir