edit to adjust dir level