checking directories