one directory function added