checking directory